package org.dromara.xhlj.domain;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import org.dromara.starter.jpacomment.annotation.SailColumn;
import org.dromara.starter.jpacomment.annotation.SailIndex;
import org.dromara.starter.jpacomment.annotation.SailTable;
import org.dromara.starter.jpacomment.enums.IndexType;
/**
 * 企业展商对象 xhlj_enterprise
 *
 * @author yf
 * @date 2024-07-28
 */

@Data
@TableName("xhlj_enterprise")
@Entity
@Table(name = "xhlj_enterprise")
@SailTable(comment = "企业展商表", indexs = {
    @SailIndex(name = "idx_contact", type = IndexType.BTREE,
       columns = {"contact_persons"}
    ),    @SailIndex(name = "idx_enterprise_id", type = IndexType.BTREE,
       columns = {"enterprise_id"}
    ),    @SailIndex(name = "business_license_number", type = IndexType.BTREE,
       columns = {"business_license_number"}
    )}
)
public class XhljEnterprise implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    public static final String TRANS_ID_TO_VO = "xhlj_enterprise_vo";
    public static final String TRANS_ID_TO_VO_LIST = "xhlj_enterprise_list";
    /**
     * 企业ID
     */
    @TableId(value = "enterprise_id")
    @Id
    private Integer enterpriseId;
    /**
     * 企业名称
     */
    @Column(name = "enterprise_name")
    @SailColumn(comment = "企业名称",type = "varchar(50)", defaultValue = "NULL")
    private String enterpriseName;
    /**
     * 会场ID
     */
    @SailColumn(comment = "会场ID",type = "int", defaultValue = "NULL")
    @Column(name = "venues_id")
    private Integer venuesId;
    /**
     * 大会id
     */
    @SailColumn(comment = "大会id",type = "int", defaultValue = "NULL")
    @Column(name = "conference_info_id")
    private Integer conferenceInfoId;
    /**
     * 创建人sys_user（大会管理员/活动负责人）
     */
    @SailColumn(comment = "创建人sys_user（大会管理员/活动负责人）",type = "int", defaultValue = "NULL")
    @Column(name = "create_by")
    private Integer createBy;
    /**
     * 企业介绍
     */
    @Column(name = "background_content")
    @SailColumn(comment = "企业介绍",type = "text", defaultValue = "NULL")
    private String backgroundContent;
    /**
     * 展商风采展示图
     */
    @Column(name = "enterprise_video_image")
    @SailColumn(comment = "展商风采展示图",type = "varchar(100)", defaultValue = "NULL")
    private String enterpriseVideoImage;
    /**
     * 展商视频
     */
    @Column(name = "enterprise_file")
    @SailColumn(comment = "展商视频",type = "varchar(255)", defaultValue = "NULL")
    private String enterpriseFile;
    /**
     * 营业执照号
     */
    @Column(name = "business_license_number")
    @SailColumn(comment = "营业执照号",type = "varchar(20)", defaultValue = "NULL")
    private String businessLicenseNumber;
    /**
     * 成立日期
     */
    @Column(name = "establishment_date")
    @SailColumn(comment = "成立日期",type = "date", defaultValue = "NULL")
    private Date establishmentDate;
    /**
     * 行业类型（0=网路安全，1=AI人工智能）
     */
    @Column(name = "industry_types")
    @SailColumn(comment = "行业类型（0=网路安全，1=AI人工智能）",type = "varchar(50)", defaultValue = "0")
    private String industryTypes;
    /**
     * 成就标签（0=世界企业500，1=互联网领军企业）
     */
    @Column(name = "achieve_tags")
    @SailColumn(comment = "成就标签（0=世界企业500，1=互联网领军企业）",type = "varchar(50)", defaultValue = "NULL")
    private String achieveTags;
    /**
     * 展商地址地图
     */
    @Column(name = "enterprise_map")
    @SailColumn(comment = "展商地址地图",type = "varchar(100)", defaultValue = "NULL")
    private String enterpriseMap;
    /**
     * 展商开始时间
     */
    @Column(name = "start_time")
    @SailColumn(comment = "展商开始时间",type = "timestamp", defaultValue = "CURRENT_TIMESTAMP")
    private Date startTime;
    /**
     * 展商结束时间
     */
    @Column(name = "end_time")
    @SailColumn(comment = "展商结束时间",type = "timestamp", defaultValue = "CURRENT_TIMESTAMP")
    private Date endTime;
    /**
     * 展商地址
     */
    @Column(name = "enterprise_location")
    @SailColumn(comment = "展商地址",type = "varchar(100)", defaultValue = "NULL")
    private String enterpriseLocation;
    /**
     * 联系人（多个联系人用逗号分割）
     */
    @Column(name = "contact_persons")
    @SailColumn(comment = "联系人（多个联系人用逗号分割）",type = "varchar(100)", defaultValue = "NULL")
    private String contactPersons;
    /**
     * 联系电话
     */
    @Column(name = "contact_phone")
    @SailColumn(comment = "联系电话",type = "varchar(100)", defaultValue = "NULL")
    private String contactPhone;
    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @Column(name = "create_time")
    @SailColumn(comment = "创建时间",type = "timestamp", defaultValue = "CURRENT_TIMESTAMP")
    private Date createTime;
    /**
     * 打卡二维码
     */
    @Column(name = "finish_image")
    @SailColumn(comment = "打卡二维码",type = "text", defaultValue = "NULL")
    private String finishImage;
    /**
     * 删除标志 (0未删除，2已删除)
     */
    @TableLogic
    @TableField(fill = FieldFill.INSERT)
    @Column(name = "del_flag")
    @SailColumn(comment = "删除标志 (0未删除，2已删除)",type = "char(1)", defaultValue = "0")
    private String delFlag;
}
